﻿package Message.Public
{
    import Framework.MQ.*;
    import Framework.Serialize.*;

    public class SMiniPlayer extends IMessageBase
    {
        public var entityId:SEntityId;
        public var name:String;
        public var sex:int;
        public var career:int;
        public var camp:int;
        public var force:int;
        public var level:int;
        public var VIP:int;
        public var online:Boolean;
        public var signature:String;
        public var combat:int;
        public var guildId:int;
        public var copyCode:int;
        public var YYpurple:int;
        public var proxyLevel:String;
        public const _type:int = 82;
        public static var _regist:SMiniPlayer = new SMiniPlayer(true);

        public function SMiniPlayer(param1:Boolean = false)
        {
            if (param1)
            {
                MessageManager.instance().regist(this);
            }
            return;
        }// end function

        override public function getType() : int
        {
            return this._type;
        }// end function

        override public function clone() : IMessageBase
        {
            return new SMiniPlayer();
        }// end function

        override public function __write(param1:SerializeStream) : void
        {
            this.entityId.__write(param1);
            param1.writeString(this.name);
            param1.writeByte(this.sex);
            param1.writeShort(this.career);
            param1.writeByte(this.camp);
            param1.writeByte(this.force);
            param1.writeByte(this.level);
            param1.writeShort(this.VIP);
            param1.writeBool(this.online);
            param1.writeString(this.signature);
            param1.writeInt(this.combat);
            param1.writeInt(this.guildId);
            param1.writeInt(this.copyCode);
            param1.writeInt(this.YYpurple);
            param1.writeString(this.proxyLevel);
            return;
        }// end function

        override public function __read(param1:SerializeStream) : void
        {
            this.entityId = new SEntityId();
            this.entityId.__read(param1);
            this.name = param1.readString();
            this.sex = param1.readByte();
            this.career = param1.readShort();
            this.camp = param1.readByte();
            this.force = param1.readByte();
            this.level = param1.readByte();
            this.VIP = param1.readShort();
            this.online = param1.readBool();
            this.signature = param1.readString();
            this.combat = param1.readInt();
            this.guildId = param1.readInt();
            this.copyCode = param1.readInt();
            this.YYpurple = param1.readInt();
            this.proxyLevel = param1.readString();
            return;
        }// end function

    }
}
